package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 
 *
 * @author code-generate
 * @date 2022-01-05
 */
@Data
@DbTable(tableName = "t_curr_status_user")
public class CurrStatusUser extends BaseEntity {
        /**
     * 人员Id 
     */
    @DbTableField(columnName = "c_user_id", dbType = DbTypeEnum.INTEGER)
    public Integer userId ;

    /**
     * 人员名称
     */
    @DbTableField(columnName = "c_user_name", dbType = DbTypeEnum.VARCHAR)
    public String userName ;

    /**
     * 在线状态:0.离线,1.在线
     */
    @DbTableField(columnName = "c_online_type", dbType = DbTypeEnum.INTEGER)
    public Integer onlineType ;

    /**
     * 是否范围内:1.在;0.不在
     */
    @DbTableField(columnName = "c_onguard_type", dbType = DbTypeEnum.INTEGER)
    public Integer onguardType ;

    /**
     * 在线时长（秒）
     */
    @DbTableField(columnName = "c_online_time", dbType = DbTypeEnum.INTEGER)
    public Integer onlineTime ;

    /**
     * 设备剩余电量
     */
    @DbTableField(columnName = "c_battery", dbType = DbTypeEnum.INTEGER)
    public Integer battery ;

    /**
     * 设备状态: 1 正常 2.低电、3.设备关机、
     */
    @DbTableField(columnName = "c_client_status", dbType = DbTypeEnum.INTEGER)
    public Integer clientStatus ;

    /**
     * 百度坐标X 
     */
    @DbTableField(columnName = "c_bd_x", dbType = DbTypeEnum.FLOAT)
    public Float bdX ;

    /**
     * 百多坐标Y 
     */
    @DbTableField(columnName = "c_bd_y", dbType = DbTypeEnum.FLOAT)
    public Float bdY ;

    /**
     * 当前GPS时间 
     */
    @DbTableField(columnName = "c_gps_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime gpsDate ;

    /**
     * 里程 
     */
    @DbTableField(columnName = "c_mileage", dbType = DbTypeEnum.FLOAT)
    public Float mileage ;

    /**
     * 范围内里程
     */
    @DbTableField(columnName = "c_mileage_in", dbType = DbTypeEnum.FLOAT)
    public Float mileageIn ;

    /**
     * 速度 
     */
    @DbTableField(columnName = "c_speed", dbType = DbTypeEnum.FLOAT)
    public Float speed ;

    /**
     * 绿地ID
     */
    @DbTableField(columnName = "c_basic_id", dbType = DbTypeEnum.INTEGER)
    public Integer basicId ;

    /**
     * 绿地名称 
     */
    @DbTableField(columnName = "c_basic_name", dbType = DbTypeEnum.VARCHAR)
    public String basicName ;

    /**
     * 数据更新时间 
     */
    @DbTableField(columnName = "c_update_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime updateDate ;


}
